package models

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var ErrNotFound = sqlx.ErrNotFound

func HasError(err error) bool {
	if err != nil && err != ErrNotFound {
		return true
	}
	return false
}
